package com.sudao.android.ball;

class Level {
	public static int MATRIX[][][] = {
		{
		 {    0,    0,    0,    0,    0,    0,    0 },
		 {    0,    0, 1101,    0, 1101,    0,    0 },
		 {    0, 1101,    0,    0,    0, 1101,    0 },
		 {    0,    0,    0,    0,    0,    0,    0 },
		 {    0, 1101,    0,  515,    0,  411,    0 },
		 {    0, 1102,    0,    0,    0, 1101,    0 },
		 {    0, 1102,    0,    0,    0, 1101,    0 },
		 {    0,    0,  911,    0,  311,    0,    0 },
		 {    0,    0,    0,    0,    0,    0,    0 },
		 {    0,    0,    0,    0,    0,    0,    0 }
		}
		,
		{
		 {    0,    0,    0,    0,    0,    0,    0 },
		 {    0,    0,    0,    0,    0,    0,    0 },
		 {    0,    0,    0,    0,    0,    0,    0 },
		 {    0,    0,    0, 1101,    0,    0,    0 },
		 {    0,    0, 1101, 1102, 1101,    0,    0 },
		 {    0, 1101, 1102,  934, 1102, 1101,    0 },
		 {    0,    0, 1101,  222, 1101,    0,    0 },
		 {    0,    0,    0, 1101,    0,    0,    0 },
		 {    0,    0,    0,    0,    0,    0,    0 },
		 {    0,    0,    0,    0,    0,    0,    0 }
		}
		,
		{
		 {    0,    0,    0,    0,    0,    0,    0 },
		 {    0, 1101,  812,    0, 1101, 1101,    0 },
		 {    0, 1101, 1101,    0, 1103, 1101,    0 },
		 {    0,    0,    0,    0,    0,    0,    0 },
		 {    0, 1103, 1101,    0,  722, 1101,    0 },
		 {    0,    0,    0,    0,    0,    0,    0 },
		 {    0, 1101, 1102,    0, 1105, 1101,    0 },
		 {    0, 1101,  511,    0, 1101,  311,    0 },
		 {    0,    0,    0,    0,    0,    0,    0 },
		 {    0,    0,    0,    0,    0,    0,    0 }
		}
		,
		{
		 {    0,    0,    0,    0,    0,    0,    0 },
		 {    0, 1103,    0,  633,    0, 1103,    0 },
		 {    0, 1102,    0, 1003,    0, 1103,    0 },
		 {    0, 1103,    0,    0,    0, 1103,    0 },
		 {    0,    0,    0,    0,    0,    0,    0 },
		 {    0,    0,    0,    0,    0,    0,    0 },
		 {    0, 1103,    0,    0,    0, 1102,    0 },
		 {    0, 1101,    0, 1103,    0,  713,    0 },
		 {    0,  611,    0, 1102,    0, 1102,    0 },
		 {    0,    0,    0,    0,    0,    0,    0 }
		}
		,
		{
		 {    0,    0,    0,    0,    0,    0,    0 },
		 {    0,    0, 1102, 1102, 1102,    0,    0 },
		 {    0, 1102, 1102,    0, 1102, 1102,    0 },
		 {    0, 1102,    0,    0,    0, 1102,    0 },
		 {    0, 1102,    0,    0,    0, 1102,    0 },
		 {    0, 1102, 1102,    0, 1102, 1102,    0 },
		 {    0,    0,    0,    0,    0,    0,    0 },
		 {    0,    0, 1102,  311, 1105,    0,    0 },
		 {    0,    0,    0,    0,    0,    0,    0 },
		 {    0,    0,    0,    0,    0,    0,    0 }
		}
		,
		{
		 { 1102, 1102, 1102, 1102, 1102, 1102, 1102 },
		 {    0,    0,    0,    0,    0,    0,    0 },
		 { 1103, 1103, 1103, 1103, 1103, 1103, 1103 },
		 {    0,    0,  822,  512, 1102,    0,    0 },
		 {    0,    0,    0,    0,    0,    0,    0 },
		 { 1102, 1102, 1022, 1102,  712, 1102, 1102 },
		 {    0,    0,    0,    0,    0,    0,    0 },
		 {    0,    0,    0,    0,    0,    0,    0 },
		 {    0,    0,    0,    0,    0,    0,    0 },
		 {    0,    0,    0,    0,    0,    0,    0 }
		}
		,
		{
		 {    0,    0, 1102,    0, 1102,    0,    0 },
		 {    0,    0, 1104,    0, 1104,    0,    0 },
		 {    0,    0,  312,    0, 1102,    0,    0 },
		 {    0,    0, 1102, 1102, 1102,    0,    0 },
		 {    0, 1101,  711, 1101, 1101,  611,    0 },
		 { 1101,    0,    0,    0,    0,    0, 1101 },
		 {    0,    0,    0, 1103,    0,    0,    0 },
		 {    0,    0,    0,    0,    0,    0,    0 },
		 {    0,    0,    0,    0,    0,    0,    0 },
		 {    0,    0,    0,    0,    0,    0,    0 }
		}
		,
		{
		 { 1103,    0,    0,    0, 1103,    0,    0 },
		 {    0,    0,    0, 1103,    0,    0,    0 },
		 {    0,    0,  113,    0,    0,    0, 1103 },
		 {    0, 1103,    0,    0,    0, 1103,    0 },
		 { 1103,    0,    0,    0, 1103,    0,    0 },
		 {    0,    0,    0, 1033,    0,    0,    0 },
		 {    0,    0, 1103,    0,    0,    0, 1103 },
		 {    0,  613,    0,    0,    0, 1103,    0 },
		 { 1103,    0,    0,    0, 1103,    0,    0 },
		 {    0,    0,    0, 1103,    0,    0,    0 },
		}
		,
		{
		 {    0,    0,    0,    0,    0,    0,    0 },
		 {    0, 1012,    0,    0,    0,  112,    0 },
		 {    0, 1101,    0,    0,    0, 1101,    0 },
		 {    0, 1102, 1102, 1102, 1102, 1102,    0 },
		 {    0, 1101, 1101, 1101,  811, 1101,    0 },
		 {    0,  622, 1102, 1102, 1022, 1102,    0 },
		 {    0,    0, 1101,    0, 1101,    0,    0 },
		 {    0,    0, 1101,    0, 1101,    0,    0 },
		 {    0,    0,    0,    0,    0,    0,    0 },
		 {    0,    0,    0,    0,    0,    0,    0 },
		}
		,
		{
		 {    0,    0, 1101,    0, 1101,    0,    0 },
		 {    0, 1103, 1103,  813, 1103, 1103,    0 },
		 { 1101, 1103,    0,    0,    0, 1103, 1101 },
		 {    0, 1103,    0, 1103,    0, 1103,    0 },
		 { 1101,  923,    0,    0,    0, 1103, 1101 },
		 {    0, 1103, 1103, 1103, 1013, 1103,    0 },
		 {    0,    0, 1101,    0, 1101,    0,    0 },
		 {    0,    0,    0,    0,    0,    0,    0 },
		 {    0,    0,    0,    0,    0,    0,    0 },
		 {    0,    0,    0,    0,    0,    0,    0 }
		}
		,
		{
		 {    0,    0,    0,    0,    0,    0,    0 },
		 {    0, 1104, 1101, 1101, 1101, 1104,    0 },
		 {    0, 1103, 1104, 1101,  434, 1103,    0 },
		 {    0, 1102, 1102, 1103, 1102, 1102,    0 },
		 {    0, 1103, 1101, 1104, 1101, 1103,    0 },
		 {    0, 1101,  422, 1104, 1102, 1101,    0 },
		 {    0, 1101, 1102, 1104, 1102, 1101,    0 },
		 {    0, 1102, 1102, 1104,  512, 1102,    0 },
		 {    0, 1101,  711, 1101, 1101, 1101,    0 },
		 {    0,    0,    0,    0,    0,    0,    0 }
		}
		,
		{
		 {    0,    0,    0,    0,    0,    0,    0 },
		 {    0, 1102, 1102, 1101, 1102, 1102,    0 },
		 { 1103, 1103, 1103, 1104, 1103, 1103, 1103 },
		 {    0, 1102, 1102, 1105, 1102, 1102,    0 },
		 {    0, 1105,  324,    0, 1104, 1105,    0 },
		 {    0, 1102, 1103, 1102, 1103, 1102,    0 },
		 {    0,  322, 1102, 1102, 1102,  312,    0 },
		 { 1101, 1103, 1101, 1102,  411, 1103, 1101 },
		 {    0,    0,    0,    0,    0,    0,    0 },
		 {    0,    0,    0,    0,    0,    0,    0 }
		}
	
	};
	
	public static int maxX;
	public static int maxY;

	public static int BRICK_COUNT[] = new int[MATRIX.length];
	static {
		maxY = MATRIX[0].length;
		maxX = MATRIX[0][0].length;

		for (int k = 0; k < MATRIX.length; k++) {
			int total = 0;
			for (int i = 0; i < maxY; i++)
				for (int j = 0; j < maxX; j++)
					if (MATRIX[k][i][j] != 0)
						++total;
			BRICK_COUNT[k] = total;
		}
	}
}
